<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","head","sysx_m"); ?>
<div class="bg pad15">
    <div class="nytitle"><a href="/" target="_blank">首页</a>
        <?php echo catpos($catid,$s='>');?>
    </div>
    <div class="nytitle" style="background: none;color:#fff;height: auto;margin-left:auto;padding: 0 2% 1% 2%">
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=7c70e805635af43e1473a2ecb6f13ce9&action=category&catid=1&order=listorder+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'1','order'=>'listorder asc','limit'=>'20',));}?>
        <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
        <a  href="<?php echo $r['url'];?>" class="layui-btn layui-btn-mini" style="display:inline-block;width:24%;color:#fff;background:#ccc;margin-top: 5px;margin-left:0 !important;<?php if($catid==$r[catid]) { ?>background-color:#2f82ff;color:#fff<?php } ?>"><?php echo $r['catname'];?></a>
        <?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>

    <div class="right_main" style="width: 90%;margin:auto">
        <div class="agent_con">
            <div class="age_li_about">
                  <h2 style="font-weight: 600;font-size: 25px"><?php echo $title;?></h2>
                   <?php if($content) { ?>
						<?php echo $content;?>
						<?php } else { ?>
						<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=8bc53a4b2e46cbc59b7370c7bcde88d8&action=category&catid=%24catid&order=listorder+asc&num=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>$catid,'order'=>'listorder asc','limit'=>'1',));}?>
						<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
						<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=99f2b5f981ac51d17d9d2f96f12b8280&sql=select+content+from+sy_page+where+catid%3D%24r%5Bcatid%5D&return=data1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select content from sy_page where catid=$r[catid] LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data1 = $a;unset($a);?>
						<?php echo $data1['0']['content'];?>
						<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
						<?php $n++;}unset($n); ?>

						<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
						<?php } ?>
            </div>
        </div>
    </div>
    
	<?php include template("content","tj_news","sysx_m"); ?>
	<?php include template("content","tj_pro","sysx_m"); ?>
    <?php include template("content","foot","sysx_m"); ?>